#!/usr/bin/env python
# -*- coding:utf8 -*-
"""
Author : mafei
Date   : 2019-12-07
"""

from time import sleep

import rpyc
from mmonitor.common.config import rpc_port, rpc_host
conn = rpyc.connect(rpc_host, 123)
# # job = conn.root.add_job('mmonitor.test.rpc_server:print_text', 'interval', args=['123123'], seconds=2)
# job = conn.root.add_job('mmonitor.main.spider:run_job', 'interval', args=[1], seconds=2)
# print(job.id)
# print(job)
# sleep(10)
#
#
# # conn.root.reschedule_job(job.id, )
# conn.root.remove_job(job.id)
#
res = conn.root.get_jobs()
print(res)


